package com.manpower.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * MpJobtitle entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mp_jobtitle", catalog = "manpower")
public class MpJobtitle implements java.io.Serializable {

	// Fields

	private String id;
	private MpDept mpDept;
	private String jobtitleDisplayId;
	private String jobtitleName;
	private String jobtitleDescription;
	private String jobtitleRemarks;
	private Integer jobtitleActivation;

	// Constructors

	/** default constructor */
	public MpJobtitle() {
	}

	/** minimal constructor */
	public MpJobtitle(String id) {
		this.id = id;
	}

	/** full constructor */
	public MpJobtitle(String id, MpDept mpDept, String jobtitleDisplayId,
			String jobtitleName, String jobtitleDescription,
			String jobtitleRemarks, Integer jobtitleActivation) {
		this.id = id;
		this.mpDept = mpDept;
		this.jobtitleDisplayId = jobtitleDisplayId;
		this.jobtitleName = jobtitleName;
		this.jobtitleDescription = jobtitleDescription;
		this.jobtitleRemarks = jobtitleRemarks;
		this.jobtitleActivation = jobtitleActivation;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "jobtitle_dept")
	public MpDept getMpDept() {
		return this.mpDept;
	}

	public void setMpDept(MpDept mpDept) {
		this.mpDept = mpDept;
	}

	@Column(name = "jobtitle_display_id", length = 200)
	public String getJobtitleDisplayId() {
		return this.jobtitleDisplayId;
	}

	public void setJobtitleDisplayId(String jobtitleDisplayId) {
		this.jobtitleDisplayId = jobtitleDisplayId;
	}

	@Column(name = "jobtitle_name", length = 200)
	public String getJobtitleName() {
		return this.jobtitleName;
	}

	public void setJobtitleName(String jobtitleName) {
		this.jobtitleName = jobtitleName;
	}

	@Column(name = "jobtitle_description", length = 200)
	public String getJobtitleDescription() {
		return this.jobtitleDescription;
	}

	public void setJobtitleDescription(String jobtitleDescription) {
		this.jobtitleDescription = jobtitleDescription;
	}

	@Column(name = "jobtitle_remarks", length = 200)
	public String getJobtitleRemarks() {
		return this.jobtitleRemarks;
	}

	public void setJobtitleRemarks(String jobtitleRemarks) {
		this.jobtitleRemarks = jobtitleRemarks;
	}

	@Column(name = "jobtitle_activation")
	public Integer getJobtitleActivation() {
		return this.jobtitleActivation;
	}

	public void setJobtitleActivation(Integer jobtitleActivation) {
		this.jobtitleActivation = jobtitleActivation;
	}

}